package com.ruibang.glass.quality.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ruibang.glass.quality.domain.req.ColdDirectReq;
import com.ruibang.glass.quality.entity.CheckAverageBoard;
import com.ruibang.glass.quality.entity.EverydayColdDirectLoss;
import com.teaming.cloud.framework2.autoconfigure.mybatisplus.mapper.CommonMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface EverydayColdDirectLossMapper extends CommonMapper<EverydayColdDirectLoss> {

    IPage<EverydayColdDirectLoss> queryEverydayColdDirect(IPage<EverydayColdDirectLoss> page, @Param("coldDirect") ColdDirectReq coldDirectReq);

    List<EverydayColdDirectLoss> queryTodayData(@Param("today") String today);

    List<CheckAverageBoard> queryCheckAverage(@Param("coldDirect") ColdDirectReq coldDirectReq);

    List<EverydayColdDirectLoss> queryDefect(@Param("coldDirect") ColdDirectReq coldDirectReq);
}
